package jacker.bit.price;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class ReceiverNetwork extends BroadcastReceiver {

	@Override
	public void onReceive(Context ctx, Intent intent) {
		
		if(!PrefStore.isPriceNotify(ctx))
			return;
		
		if(UtilAndroid.hasInternet(ctx, false)){
			UtilLog.d("Network on ... ");
			//ctx.startService(new Intent(ctx,ServiceCheckMail.class));
				PriceChecker.checkPrices(ctx);
		}else{
			UtilLog.d("Network off...");
		}
		
	}

}
